package Huihu.src.Huihu;

public class Whilexunhuan {
    public static void main(String[] args) {
        //while循环
        int a=10;
        while(a<=20){
            System.out.println(a);
            a++;
        }
        System.out.println("----------");
        //do......while循环
        int b=10;
        do {
            System.out.println(b);
            b++;
        }while (b<=20);
    }
}
